﻿/// <reference path="../../script/jquery-1.4.1.min.js" />
$(function () {
    $(".log").css("margin-top", ($(window).height() - 450) / 2 + "px");
    $(".logtop").css("margin-left", ($(window).width() - 437) / 2 + "px");
    $(".logcenter").css("margin-left", ($(window).width() - 437) / 2 + "px");
    $(".logbottom").css("margin-left", ($(window).width() - 437) / 2 + "px");
    $(window).resize(function () {
        $(".log").css("margin-top", ($(window).height() - 450) / 2 + "px");
        $(".logtop").css("margin-left", ($(window).width() - 437) / 2 + "px");
        $(".logcenter").css("margin-left", ($(window).width() - 437) / 2 + "px");
        $(".logbottom").css("margin-left", ($(window).width() - 437) / 2 + "px");
    });
    $(window).keydown(function (eventTag) {
        var event = eventTag || window.event;
        var k = event.charCode || event.keyCode;
        if (k == 13) {
            $("#btnLogin").click();
        }
    });
    $("#txtLoginName").focus();
});